package com.atguigu.gulimall.mudan.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;

import com.atguigu.gulimall.mudan.dao.LegendDao;
import com.atguigu.gulimall.mudan.entity.LegendEntity;
import com.atguigu.gulimall.mudan.service.LegendService;


@Service("legendService")
public class LegendServiceImpl extends ServiceImpl<LegendDao, LegendEntity> implements LegendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LegendEntity> page = this.page(
                new Query<LegendEntity>().getPage(params),
                new QueryWrapper<LegendEntity>()
        );

        return new PageUtils(page);
    }

}